package com.lagou.module4.work01;

public class StaffTest {
    /*
        编写一个员工类
        属性: 姓名,年龄
        如果年龄小于18龄大于150抛出年龄异常
        如果姓名为null或者""抛出空异常
    */
    public static void main(String[] args) {

        Staff staff = null;
        try {
            staff  = new Staff("zhangsan",17);
        } catch (StaffAgeException e) {
            e.printStackTrace();
        }

        System.out.println(staff);

    }
}
